﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Sever2
{
   class Program
{
    static void Main(string[] args)
    {
        int port = 1234;
        IPEndPoint iPEndPoint = new IPEndPoint(IPAddress.Any, port);
        Console.WriteLine("服务器开启...");

        UnityServer unityServer = new UnityServer();
        unityServer.Start(iPEndPoint);

        while(true)
        {
            string input = Console.ReadLine();
            if (input == "Q")
                return;
        }
            
    }
}
}
